<?php

namespace brainmaster\mobi\application\dao;

use brainmaster\mobi\application\entity\Barang;
use brainmaster\SessionFactory;
use Doctrine\ORM\EntityRepository;

class BarangDao extends EntityRepository {
	
	public function __construct($classDirectory,$entityDirectory,$properties,$isDevMode) {
		$sessionFactory = SessionFactory::getSession($classDirectory, $entityDirectory, $properties, $isDevMode);
		parent::__construct($sessionFactory, $sessionFactory->getClassMetadata("Barang"));
	}
	
// 	public function getBarangs() {
// 		return $this->findAll();
// 	}
}
